/*
 *	The characterio program verifies that the expression:
 *	getchar() != EOF is 0 or 1.
 *	Copyright (C) 1989-2089 Sergey Sergeevich Tsybanov All Rights Reserved
 *
 *	Characterio is free software: you can redistribute it and/or modify 
 *	it under the terms of the GNU General Public License as published 
 *	by the Free Software Foundation, either version 3 of the License, 
 *	or (at your option) any later version.
 *
 *	Characterio is distributed in the hope that it will be useful, but 
 *	WITHOUT ANY WARRANTY; without even the implied warranty of 
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 *	See the GNU General Public License for more details.
 *
 *	You should have received a copy of the GNU General Public License 
 *	along with the characterio program. 
 *	If not, see <https://www.gnu.org/licenses/>.
 */

#include <stdio.h>

/*
 *	Verify that the expression getchar() != EOF is 0 or 1.
 */
int main( void)
{
	char byte;
	while ( ( byte = getchar()) != EOF) {
		printf( "\n0\n");
		putchar( byte);
	}
	printf( "\n1\n");

	return 0;
}